<?php
if (isset($_GET['source'])){
  echo highlight_file(__FILE__, true);
  die;
}

$test = "程咬金爱貂蝉！";
$flag = "flag={远在天边近在眼前}";
extract($_GET);
if (isset($gift)){
  $content = trim($test);
  if ($gift == $content){
    include "flag.php";
  }else{
    $flag = "你在想啥呢?";
  }
}
?>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>变量覆盖-02</title>
</head>
<body>
  <h1>仔细思考：拿到flag,flag中包含数字额！</h1>
  <a href="?source" target="_blank"><h2>查看源码</h2></a>
  <h2><?=$flag?></h2>
</body>
</html>
